package com.yzkj.cpjxc.business.service;

import com.yzkj.cpjxc.business.framework.common.BusinessMap;
import com.yzkj.cpjxc.business.framework.common.Pager;
import com.yzkj.cpjxc.business.domain.Multimedia;
import com.yzkj.cpjxc.business.domain.MultimediaQueryVo;

import java.util.List;

/**
 * 多媒体文件
 */
public interface MultimediaService {
	
	/**
	 * 获取查询分页对象
	 * @creator: shenghe.he
	 * @modifier:
	 * @modifiedDate:
	 * @param pager
	 * @param queryVo
	 * @return
	 * @throws Exception
	 */
	public Pager<Multimedia> search(Pager<Multimedia> pager, MultimediaQueryVo queryVo) throws Exception;
	
	/**
	 * 新增多媒体文件
	 * @creator: shenghe.he
	 * @modifier:
	 * @modifiedDate:
	 * @param multimedia
	 * @return
	 * @throws Exception
	 */
	public BusinessMap create(Multimedia multimedia) throws Exception;
	
	/**
	 * 判断是否存在
	 * @creator: shenghe.he
	 * @modifier:
	 * @modifiedDate:
	 * @param multimedia 多媒体文件
	 * @return
	 * @throws Exception
	 */
	public boolean isExists(Multimedia multimedia) throws Exception;
	
	/**
	 * 根据ID获取多媒体文件
	 * @creator: shenghe.he
	 * @modifier:
	 * @modifiedDate:
	 * @param uuid
	 * @return
	 * @throws Exception
	 */
	public Multimedia getById(String uuid) throws Exception;
	
	/**
	 * 编辑多媒体文件
	 * @creator: shenghe.he
	 * @modifier:
	 * @modifiedDate:
	 * @param multimedia 多媒体文件
	 * @return
	 * @throws Exception
	 */
	public BusinessMap edit(Multimedia multimedia) throws Exception;
	
	/**
	 * 根据ID逻辑删除多媒体文件
	 * @creator: shenghe.he
	 * @modifier:
	 * @modifiedDate:
	 * @param uuid
	 * @return
	 * @throws Exception
	 */
	public boolean falseDelete(String uuid) throws Exception;

	public List<Multimedia> getByFkUuid(String fkUuid) throws Exception;

	/**
	 * @description: 物理删除
	 * @creator: 何圣和
	 * @modifier:
	 * @modifiedDate:
	 * @param uuid
	 * @return
	 * @throws Exception
	 */
	public boolean delete(String uuid) throws Exception;
	

}
